import request from '@/utils/request'


// 分页查询
export function selectPage(query) {
  return request({
    url: '/apartment/wegateway/selectPage',
    method: 'get',
    params: query
  })
}

// 添加网关信息
export function addGateway(form) {
  return request({
    url: '/apartment/wegateway/addGateway',
    method: 'post',
    data: form
  })
}

// 修改网关信息
export function updateGateway(form) {
  return request({
    url: '/apartment/wegateway/updateGateway',
    method: 'put',
    data: form
  })
}

// 删除网关信息
export function deleteGateway(id) {
  return request({
    url: '/apartment/wegateway/deleteGateway/' + id,
    method: 'delete',
  })
}

// 所有网关信息
export function getGatewayAll() {
  return request({
    url: '/apartment/wegateway/getGatewayAll',
    method: 'get',
  })
}
